package su.jet.common.irc.protocol;

import java.io.Serializable;

import su.jet.common.irc.protocol.request.Request;

@SuppressWarnings("serial")
public class Answer implements Serializable {
	
	public static final boolean CONFIRMED = true;
	public static final boolean NOT_CONFIRMED = false;
	
	private Request request;
	private boolean isConfirmed = true; //[ek] TODO public?
	
	public Answer(Request request, boolean isConfirmed) {
		this.request = request;
		this.isConfirmed = isConfirmed;
	}
	
	public void confirm() {
		this.isConfirmed = true;
	}

	public boolean isConfirmed() {
		return isConfirmed;
	}
	
	public Request getRequest() {
		return request;
	}
}
